﻿using System;

namespace Matrix.MaKaYunShang.Model
{
	
    /// <summary>
    ///商家资金变动表
    /// </summary>
    public class ShopMoneyChangeRecord
    {
        #region 默认属性
        /// <summary>
        /// 系统金额变动记录表ID
        /// </summary>		
        public int Id { get; set; }
        /// <summary>
        /// 公众号ID
        /// </summary>		
        public int MxProjectInfoId { get; set; }
        /// <summary>
        /// 变动前金额
        /// </summary>		
        public decimal BeforeMoney { get; set; }
        /// <summary>
        /// 变动后金额
        /// </summary>		
        public decimal AfterMoney { get; set; }
        /// <summary>
        /// 变动来源(0充值  1提现  2红包发放  3平台佣金  4商户之间佣金提取  5平台扣除商户佣金  6商户提取商户佣金)
        /// </summary>		
        public int ChangeSource { get; set; }
        /// <summary>
        /// 变动关联流水号
        /// </summary>		
        public string ChangeSerialNumber { get; set; }
        /// <summary>
        /// 变动金额
        /// </summary>		
        public decimal ChangeMoney { get; set; }
        /// <summary>
        /// 操作人OPENID
        /// </summary>		
        public string OperaOpenId { get; set; }
        /// <summary>
        /// 操作人员id
        /// </summary>		
        public int OperaUserId { get; set; }
        /// <summary>
        /// 操作人员id来源(0商家 1平台 2 后台账户 )
        /// </summary>		
        public int OperaSource { get; set; }
        /// <summary>
        /// 操作结果(0 待操作1操作失败2操作成功)
        /// </summary>		
        public int OperaResult { get; set; }
        /// <summary>
        /// 外部活动传入标识符
        /// </summary>		
        public string OutActivityCode { get; set; }
        /// <summary>
        /// 资金流水关联的订单ID
        /// </summary>		
        public int OrderId { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>		
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 是否已删除（True已删除，False未删除）
        /// </summary>		
        public bool IsDelete { get; set; }
        /// <summary>
        /// 店铺id
        /// </summary>		
        public int ShopId { get; set; }
        #endregion

        #region 扩展属性
        public int? ShareShopId { get; set; }
        #endregion
    }
}